Let's start adding the code to create the blocks.

  • Go to and drag out Rectangle. Drop it on the line right after the random number.
  • Make sure that there is a green block ···· to the left of your rectangle code.

This is how the program knows which lines of code are inside the interval event.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)